Release 10.1A: OpenEdge Development:
ADM Reference


widgetValue

For most objects, returns the INPUT-VALUE of the object.

For a browse column within a ROW-DISPLAY trigger, the function returns the BUFFER-VALUE from the RowObject buffer field. If INPUT-VALUE returns a 4GL error because the value is actually blank, widgetIsBlank will be invoked and blank will be returned. For SmartDataFields, which do not have a standard function for returning an unformatted value, this function does nothing and returns unknown.

Location: visual.p

Parameters:

INPUT namelist AS CHARACTER

The name of one or more objects, separated by commas.

Returns: CHARACTER

Notes: The DHTML client supports for DATE, DECIMAL, and INTEGER data types. CHARACTER and LOGICAL data types are not supported.

Examples:

The following illustrates the use of this method in 4GL code for use with a graphical user interface:

IF widgetValue("custID":U) = cID THEN … 

The following illustrates the use of this method in DHTML code for use with a Web browser:

if (logic.widgetValue(‘customerviewv.custnum’)==cID) … 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095